DimenDensitySp

EN Utility object for handling SSP (Scalable Sp) dimensions from Java.

PT Objeto utilitário para manipulação de dimensões SSP (Scalable Sp) no Java.

Functions

Link copied to clipboard
fun dhsp(context: Context, value: Int): Float

EN Quick resolution for Screen Height (dhsp). PT Resolução rápida para Altura da Tela (dhsp).

Link copied to clipboard
fun dhspa(context: Context, value: Int): Float
Link copied to clipboard
fun dhspi(context: Context, value: Int): Float
Link copied to clipboard
fun dhspia(context: Context, value: Int): Float
Link copied to clipboard
fun dhspLw(context: Context, value: Int): Float

EN Quick resolution for Screen Height (dhsp), but in landscape orientation it acts as Screen Width (dwsp).

Link copied to clipboard
fun dhspLwa(context: Context, value: Int): Float
Link copied to clipboard
fun dhspLwi(context: Context, value: Int): Float
Link copied to clipboard
fun dhspLwia(context: Context, value: Int): Float
Link copied to clipboard
fun dhspMode(context: Context, value: Int, modeValue: Number, uiModeType: UiModeType, finalQualifierResolver: DpQualifier? = null, fontScale: Boolean = true, ignoreMultiWindows: Boolean = false, applyAspectRatio: Boolean = false, customSensitivityK: Float? = null): Float

EN Facilitator for Screen Height (dhsp) with UiModeType override.

Link copied to clipboard
fun dhspPw(context: Context, value: Int): Float

EN Quick resolution for Screen Height (dhsp), but in portrait orientation it acts as Screen Width (dwsp).

Link copied to clipboard
fun dhspPwa(context: Context, value: Int): Float
Link copied to clipboard
fun dhspPwi(context: Context, value: Int): Float
Link copied to clipboard
fun dhspPwia(context: Context, value: Int): Float
Link copied to clipboard
fun dhspQualifier(context: Context, value: Int, qualifiedValue: Number, qualifierType: DpQualifier, qualifierValue: Number, finalQualifierResolver: DpQualifier? = null, fontScale: Boolean = true, ignoreMultiWindows: Boolean = false, applyAspectRatio: Boolean = false, customSensitivityK: Float? = null): Float

EN Quick resolution for Screen Height (hSP) conditional scaling.

Link copied to clipboard
fun dhspRotate(context: Context, value: Int, rotationValue: Number, finalQualifierResolver: DpQualifier = DpQualifier.HEIGHT, orientation: Orientation = Orientation.LANDSCAPE, fontScale: Boolean = true, ignoreMultiWindows: Boolean = false, applyAspectRatio: Boolean = false, customSensitivityK: Float? = null): Float

EN Facilitator for Screen Height (dhsp) with rotation override.

Link copied to clipboard
fun dhspScreen(context: Context, value: Int, screenValue: Number, uiModeType: UiModeType, qualifierType: DpQualifier, qualifierValue: Number, finalQualifierResolver: DpQualifier? = null, fontScale: Boolean = true, ignoreMultiWindows: Boolean = false, applyAspectRatio: Boolean = false, customSensitivityK: Float? = null): Float

EN Quick resolution for Screen Height (hSP) context conditional scaling.

Link copied to clipboard
fun dssp(context: Context, value: Int): Float

EN Quick resolution for Smallest Width (dssp). PT Resolução rápida para Smallest Width (dssp).

Link copied to clipboard
fun dsspa(context: Context, value: Int): Float
Link copied to clipboard
fun dsspi(context: Context, value: Int): Float
Link copied to clipboard
fun dsspia(context: Context, value: Int): Float
Link copied to clipboard
fun dsspLh(context: Context, value: Int): Float

EN Quick resolution for Smallest Width (dssp), but in landscape orientation it acts as Screen Height (dhsp).

Link copied to clipboard
fun dsspLha(context: Context, value: Int): Float
Link copied to clipboard
fun dsspLhi(context: Context, value: Int): Float
Link copied to clipboard
fun dsspLhia(context: Context, value: Int): Float
Link copied to clipboard
fun dsspLw(context: Context, value: Int): Float

EN Quick resolution for Smallest Width (dssp), but in landscape orientation it acts as Screen Width (dwsp).

Link copied to clipboard
fun dsspLwa(context: Context, value: Int): Float
Link copied to clipboard
fun dsspLwi(context: Context, value: Int): Float
Link copied to clipboard
fun dsspLwia(context: Context, value: Int): Float
Link copied to clipboard
fun dsspMode(context: Context, value: Int, modeValue: Number, uiModeType: UiModeType, finalQualifierResolver: DpQualifier? = null, fontScale: Boolean = true, ignoreMultiWindows: Boolean = false, applyAspectRatio: Boolean = false, customSensitivityK: Float? = null): Float

EN Facilitator for Smallest Width (dssp) with UiModeType override.

Link copied to clipboard
fun dsspPh(context: Context, value: Int): Float

EN Quick resolution for Smallest Width (dssp), but in portrait orientation it acts as Screen Height (dhsp).

Link copied to clipboard
fun dsspPha(context: Context, value: Int): Float
Link copied to clipboard
fun dsspPhi(context: Context, value: Int): Float
Link copied to clipboard
fun dsspPhia(context: Context, value: Int): Float
Link copied to clipboard
fun dsspPw(context: Context, value: Int): Float

EN Quick resolution for Smallest Width (dssp), but in portrait orientation it acts as Screen Width (dwsp).

Link copied to clipboard
fun dsspPwa(context: Context, value: Int): Float
Link copied to clipboard
fun dsspPwi(context: Context, value: Int): Float
Link copied to clipboard
fun dsspPwia(context: Context, value: Int): Float
Link copied to clipboard
fun dsspQualifier(context: Context, value: Int, qualifiedValue: Number, qualifierType: DpQualifier, qualifierValue: Number, finalQualifierResolver: DpQualifier? = null, fontScale: Boolean = true, ignoreMultiWindows: Boolean = false, applyAspectRatio: Boolean = false, customSensitivityK: Float? = null): Float

EN Quick resolution for Smallest Width (swSP) conditional scaling.

Link copied to clipboard
fun dsspRotate(context: Context, value: Int, rotationValue: Number, finalQualifierResolver: DpQualifier = DpQualifier.SMALL_WIDTH, orientation: Orientation = Orientation.LANDSCAPE, fontScale: Boolean = true, ignoreMultiWindows: Boolean = false, applyAspectRatio: Boolean = false, customSensitivityK: Float? = null): Float

EN Facilitator for Smallest Width (dssp) with rotation override.

Link copied to clipboard
fun dsspScreen(context: Context, value: Int, screenValue: Number, uiModeType: UiModeType, qualifierType: DpQualifier, qualifierValue: Number, finalQualifierResolver: DpQualifier? = null, fontScale: Boolean = true, ignoreMultiWindows: Boolean = false, applyAspectRatio: Boolean = false, customSensitivityK: Float? = null): Float

EN Quick resolution for Smallest Width (swSP) context conditional scaling.

Link copied to clipboard
fun dwemPh(context: Context, value: Int): Float

EN Quick resolution for Screen Width without font scale, portrait is Screen Height.

Link copied to clipboard
fun dwemPha(context: Context, value: Int): Float
Link copied to clipboard
fun dwemPhi(context: Context, value: Int): Float
Link copied to clipboard
fun dwemPhia(context: Context, value: Int): Float
Link copied to clipboard
fun dwsp(context: Context, value: Int): Float

EN Quick resolution for Screen Width (dwsp). PT Resolução rápida para Largura da Tela (dwsp).

Link copied to clipboard
fun dwspa(context: Context, value: Int): Float
Link copied to clipboard
fun dwspi(context: Context, value: Int): Float
Link copied to clipboard
fun dwspia(context: Context, value: Int): Float
Link copied to clipboard
fun dwspLh(context: Context, value: Int): Float

EN Quick resolution for Screen Width (dwsp), but in landscape orientation it acts as Screen Height (dhsp).

Link copied to clipboard
fun dwspLha(context: Context, value: Int): Float
Link copied to clipboard
fun dwspLhi(context: Context, value: Int): Float
Link copied to clipboard
fun dwspLhia(context: Context, value: Int): Float
Link copied to clipboard
fun dwspMode(context: Context, value: Int, modeValue: Number, uiModeType: UiModeType, finalQualifierResolver: DpQualifier? = null, fontScale: Boolean = true, ignoreMultiWindows: Boolean = false, applyAspectRatio: Boolean = false, customSensitivityK: Float? = null): Float

EN Facilitator for Screen Width (dwsp) with UiModeType override.

Link copied to clipboard
fun dwspPh(context: Context, value: Int): Float

EN Quick resolution for Screen Width (dwsp), but in portrait orientation it acts as Screen Height (dhsp).

Link copied to clipboard
fun dwspPha(context: Context, value: Int): Float
Link copied to clipboard
fun dwspPhi(context: Context, value: Int): Float
Link copied to clipboard
fun dwspPhia(context: Context, value: Int): Float
Link copied to clipboard
fun dwspQualifier(context: Context, value: Int, qualifiedValue: Number, qualifierType: DpQualifier, qualifierValue: Number, finalQualifierResolver: DpQualifier? = null, fontScale: Boolean = true, ignoreMultiWindows: Boolean = false, applyAspectRatio: Boolean = false, customSensitivityK: Float? = null): Float

EN Quick resolution for Screen Width (wSP) conditional scaling.

Link copied to clipboard
fun dwspRotate(context: Context, value: Int, rotationValue: Number, finalQualifierResolver: DpQualifier = DpQualifier.WIDTH, orientation: Orientation = Orientation.LANDSCAPE, fontScale: Boolean = true, ignoreMultiWindows: Boolean = false, applyAspectRatio: Boolean = false, customSensitivityK: Float? = null): Float

EN Facilitator for Screen Width (dwsp) with rotation override.

Link copied to clipboard
fun dwspScreen(context: Context, value: Int, screenValue: Number, uiModeType: UiModeType, qualifierType: DpQualifier, qualifierValue: Number, finalQualifierResolver: DpQualifier? = null, fontScale: Boolean = true, ignoreMultiWindows: Boolean = false, applyAspectRatio: Boolean = false, customSensitivityK: Float? = null): Float

EN Quick resolution for Screen Width (wSP) context conditional scaling.

Link copied to clipboard
fun getDimensionInPx(context: Context, qualifier: DpQualifier, value: Int, fontScale: Boolean = true, inverter: Inverter = Inverter.DEFAULT, ignoreMultiWindows: Boolean = false, applyAspectRatio: Boolean = false, customSensitivityK: Float? = null): Float

EN Generic scaling function for Java (PX). PT Função de escala genérica para Java (PX).

Link copied to clipboard
fun getDimensionInSp(context: Context, qualifier: DpQualifier, value: Int, fontScale: Boolean = true, inverter: Inverter = Inverter.DEFAULT, ignoreMultiWindows: Boolean = false, applyAspectRatio: Boolean = false, customSensitivityK: Float? = null): Float

EN Generic scaling function for Java (SP value). PT Função de escala genérica para Java (valor SP).

Link copied to clipboard
fun hei(context: Context, value: Int): Float

EN Quick resolution for Screen Height without font scale.

Link copied to clipboard
fun heia(context: Context, value: Int): Float
Link copied to clipboard
fun heii(context: Context, value: Int): Float
Link copied to clipboard
fun heiia(context: Context, value: Int): Float
Link copied to clipboard
fun hemLw(context: Context, value: Int): Float

EN Quick resolution for Screen Height without font scale, landscape is Screen Width.

Link copied to clipboard
fun hemLwa(context: Context, value: Int): Float
Link copied to clipboard
fun hemLwi(context: Context, value: Int): Float
Link copied to clipboard
fun hemLwia(context: Context, value: Int): Float
Link copied to clipboard
fun hemPw(context: Context, value: Int): Float

EN Quick resolution for Screen Height without font scale, portrait is Screen Width.

Link copied to clipboard
fun hemPwa(context: Context, value: Int): Float
Link copied to clipboard
fun hemPwi(context: Context, value: Int): Float
Link copied to clipboard
fun hemPwia(context: Context, value: Int): Float
Link copied to clipboard
fun scaled(initialBaseValue: Float): DensitySp

EN Starts the build chain for the custom dimension DensitySp from a base Float. PT Inicia a cadeia de construção para a dimensão customizada DensitySp a partir de um Float base.

fun scaled(initialBaseValue: Int): DensitySp

EN Starts the build chain for the custom dimension DensitySp from a base Int. PT Inicia a cadeia de construção para a dimensão customizada DensitySp a partir de um Int base.

Link copied to clipboard
fun sei(context: Context, value: Int): Float

EN Quick resolution for Smallest Width (sei) - Without font scale. PT Resolução rápida para Smallest Width (sei) - Sem escala de fonte.

Link copied to clipboard
fun seia(context: Context, value: Int): Float
Link copied to clipboard
fun seii(context: Context, value: Int): Float
Link copied to clipboard
fun seiia(context: Context, value: Int): Float
Link copied to clipboard
fun semLh(context: Context, value: Int): Float

EN Quick resolution for Smallest Width without font scale, landscape is Screen Height.

Link copied to clipboard
fun semLha(context: Context, value: Int): Float
Link copied to clipboard
fun semLhi(context: Context, value: Int): Float
Link copied to clipboard
fun semLhia(context: Context, value: Int): Float
Link copied to clipboard
fun semLw(context: Context, value: Int): Float

EN Quick resolution for Smallest Width without font scale, landscape is Screen Width.

Link copied to clipboard
fun semLwa(context: Context, value: Int): Float
Link copied to clipboard
fun semLwi(context: Context, value: Int): Float
Link copied to clipboard
fun semLwia(context: Context, value: Int): Float
Link copied to clipboard
fun semPh(context: Context, value: Int): Float

EN Quick resolution for Smallest Width without font scale, portrait is Screen Height.

Link copied to clipboard
fun semPha(context: Context, value: Int): Float
Link copied to clipboard
fun semPhi(context: Context, value: Int): Float
Link copied to clipboard
fun semPhia(context: Context, value: Int): Float
Link copied to clipboard
fun semPw(context: Context, value: Int): Float

EN Quick resolution for Smallest Width without font scale, portrait is Screen Width.

Link copied to clipboard
fun semPwa(context: Context, value: Int): Float
Link copied to clipboard
fun semPwi(context: Context, value: Int): Float
Link copied to clipboard
fun semPwia(context: Context, value: Int): Float
Link copied to clipboard

EN Eagerly initializes DimenCache (persistence / DataStore) so the first resolution on a hot path avoids lazy-init work. PT Inicializa o DimenCache antecipadamente para evitar custo lazy no primeiro uso.

Link copied to clipboard
fun wei(context: Context, value: Int): Float

EN Quick resolution for Screen Width without font scale.

Link copied to clipboard
fun weia(context: Context, value: Int): Float
Link copied to clipboard
fun weii(context: Context, value: Int): Float
Link copied to clipboard
fun weiia(context: Context, value: Int): Float
Link copied to clipboard
fun wemLh(context: Context, value: Int): Float

EN Quick resolution for Screen Width without font scale, landscape is Screen Height.

Link copied to clipboard
fun wemLha(context: Context, value: Int): Float
Link copied to clipboard
fun wemLhi(context: Context, value: Int): Float
Link copied to clipboard
fun wemLhia(context: Context, value: Int): Float